package com.lushuan.controller;

import com.lushuan.entity.UserInfo;
import com.lushuan.service.IUserService;
import com.lushuan.service.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("user")
public class UserController {



    @Autowired
    UserServiceImpl userService;

    @RequestMapping("getUserById/{userId}")
    public UserInfo getAll(@PathVariable Integer userId) {
        return userService.queryUserById(userId);
    }



}
